package org.tony.spider.novel.common;

import java.util.concurrent.ConcurrentHashMap;

import org.tony.spider.common.AbstractContext;
import org.tony.spider.novel.entries.Book;

public class BooksContext extends AbstractContext<String, Book>
{

  private static BooksContext instance;

  private BooksContext()
  {
    this.context = new ConcurrentHashMap<String, Book>();
  }

  public static synchronized BooksContext getInstance()
  {
    if (instance == null)
    {
      instance = new BooksContext();
    }
    return instance;
  }
}
